-- GENERATED SPELL FOR [Gurubashi Champion] --


function spell0_11356(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(24438,pUnit)
pUnit:RegisterEvent('Sorts_11356', 20268, 1)
end

function spell1_11356(pUnit, Event) --@Berserker Charge,n/a--
pUnit:FullCastSpellOnTarget(22886,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11356', 634, 1)
end

function spell2_11356(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(15655,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11356', 2344, 1)
end

function spell3_11356(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(22591,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11356', 682, 1)
end

function Sorts_11356(pUnit, Event)
local choix_sorts_11356 = math.random(0, 3)
if choix_sorts_11356 == 0 then
pUnit:RegisterEvent('spell0_11356', 1, 1)
end
if choix_sorts_11356 == 1 then
pUnit:RegisterEvent('spell1_11356', 1, 1)
end
if choix_sorts_11356 == 2 then
pUnit:RegisterEvent('spell2_11356', 1, 1)
end
if choix_sorts_11356 == 3 then
pUnit:RegisterEvent('spell3_11356', 1, 1)
end
end

function mob11356_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11356', math.random(1500, 3000), 1)
end

function mob11356_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11356_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11356_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11356, 1, 'mob11356_Action')
RegisterUnitEvent(11356, 2, 'mob11356_Leave')
RegisterUnitEvent(11356, 3, 'mob11356_Kill')
RegisterUnitEvent(11356, 4, 'mob11356_Die')
